// index.less
/* 公共样式 */
.main-page-main {
    display: flex;
    flex-direction: column;
    flex: 1;

    .main-page-body {
        .main-page-body-left {
            flex: 1;
            background-color: var(--bg-color-five);
        }

        .main-page-body-mid {
            flex: 5;

            .card {
                padding: 1em;
            }

            .recommend-container {
                background-color: var(--bg-color-four);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                border-radius: 12px;
                padding: 20px;
                margin: 0 auto;
                transition: transform 0.3s, box-shadow 0.3s;
                margin-bottom: 10px;

                &:hover {
                    transform: translateY(-10px);
                    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
                }

                .recommend-title {
                    text-align: center;
                    font-size: 20px;
                    font-weight: bold;
                    margin: 0 10px 0 0;
                    color: var(--font-seven);

                    &::after {
                        content: '';
                        display: block;
                        width: 60px;
                        height: 3px;
                        background-color: #FF6347;
                        /* 标题底部线条颜色 */
                        margin: 10px auto 0;
                    }
                }

                .recommend-list {
                    list-style-type: none;
                    padding: 0;

                    li {
                        margin-bottom: 10px;
                        padding: 10px 15px;
                        border-radius: 8px;
                        background-color: white;
                        transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;

                        &:hover {
                            background-color: var(--bg-color-four);
                            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                            transform: translateY(-5px);
                            color: var(--font-seven);
                        }

                        a {
                            text-decoration: none;
                            color: var(--font-seven);
                            /* 链接颜色 */
                            font-size: 14px;
                            display: block;
                            /* 使链接占据整个容器宽度 */
                            transition: text-decoration 0.3s;

                            &:hover {
                                text-decoration: underline;
                            }
                        }
                    }
                }
            }
        }

        .main-page-mid-pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 2em;
        }

        .main-page-body-right {
            flex: 2;
            background-color: var(--bg-color-five);
        }

        .main-page-body-right-item {
            margin: 20px;
        }
    }

    .main-page-footer {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-color-six);
        color: var(--normal-font-color);
        flex: 1;

        .footer-item {
            display: flex;
            padding-top: 10px;
            justify-content: center;
            align-items: center;
        }
    }
}

/* 桌面端 */
@media screen and (min-width: 911px) {
    .main-page-main {
        .main-page-body {
            display: flex;
            flex-direction: row;

            .main-page-body-left img {
                width: 94%;
                padding: 10px 3%;
            }

            .main-page-body-mid .card {
                padding: 2em;
            }

            .main-page-footer {
                min-height: 120px;
            }
        }
    }
}

/* 移动端 */
@media screen and (max-width: 910px) {
    .main-page-main {
        .main-page-body {
            display: flex;
            flex-direction: column;

            .main-page-body-left {
                display: none;
            }

            .main-page-body-right {
                display: none;
            }
        }

        .main-page-footer {
            height: 120px;
        }
    }
}